import React, { Component } from 'react';
import Foot from '../../components3/foot/foot'
import Nav from '../nav/nav.jsx'
import Productdetail from '../shangpin/shangpin'
import Changecity from '../../switchCity'
import Tejia from '../../tejia/index'
import Jingxuanpp from '../../jingxuanpp/index'
import Woshishangjia from '../../hangyeshangjia/hangyeshangjia'
import Jifenshop from '../jifenshop/jifenshop'
import Jiaruyihe from '../../components2/jiaru/jiaru'
import Zhengpingbaozhang from '../../components2/zhepin/zhepin'
import Shenqingruzhu from '../../components2/shenqing/shenqing'
import Guanyuwomen from '../../components2/aboutus/aboutus'
import { HashRouter, Route, Link } from 'react-router-dom'

class home extends Component {
    constructor(props) {
        super(props);
        this.state = {
            productlist:[]
        }
    }
    render() {
        return (
            <div className="product-home">
                <Nav history={this.props.history}/>
                <HashRouter>
                    <Route path='/producthome/detail/:id' component={Productdetail}></Route>
                    <Route path='/producthome/changecity' component={Changecity}></Route>
                    <Route path='/producthome/tejia' component={Tejia}></Route>
                    <Route path='/producthome/jingxuanpp' component={Jingxuanpp}></Route>
                    <Route path='/producthome/woshishangjia' component={Woshishangjia}></Route>
                    <Route path='/producthome/jifenshop' component={Jifenshop}></Route>
                    <Route path='/producthome/jiaruyihe' component={Jiaruyihe}></Route>
                    <Route path='/producthome/zhengpingbaozhang' component={Zhengpingbaozhang}></Route>
                    <Route path='/producthome/shenqingruzhu' component={Shenqingruzhu}></Route>
                    <Route path='/producthome/guanyuwomen' component={Guanyuwomen}></Route>
                </HashRouter>
                <Foot/>
            </div>
        );
    }
}

export default home;